package com.example.easybuy.mapper;


import com.example.easybuy.pojo.EasybuyUser;
import com.example.easybuy.pojo.EasybuyUserAddress;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 张子晨
 * @since 2021-03-12
 */
public interface EasybuyUserAddressMapper {

    List<EasybuyUserAddress> getAddressByUserId(Integer userId);

    List<EasybuyUserAddress> getAllAddressByUserId(Integer userId);

    EasybuyUserAddress getAddressbyAddressId(Integer addressId);

    int addUserAddress(Map<String,Object> params);
}
